cmake_minimum_required(VERSION 3.0.0) # CMake 最低版本号要求
project(ChineseChess VERSION 0.1.0) # 项目信息

include(CTest)
enable_testing()

aux_source_directory(./src DIR_CRCS)
add_executable(ChineseChess ${DIR_CRCS})
target_compile_options(ChineseChess PRIVATE -fexec-charset=GBK)

set(EXECUTABLE_OUTPUT_PATH ./output)
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
set(CMAKE_C_STANDARD 23)
include(CPack)
